﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectLog.aspx.cs" Inherits="CentralOffice.WebClient.Tasks.ProjectLog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>项目工作日志查询</title>
    <link rel="stylesheet" type="text/css" href="../theme/2/style.css" />
    <%--<meta http-equiv="Pragma"  content=""no-cache" />
    <meta http-equiv="Cache-Control"  content=""no-cache" />
    <meta http-equiv="Expires"  content=""0" />--%>
    <script src="../inc/js/ccorrect_btn.js" type="text/javascript"></script>
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="../images/sys_config.gif" WIDTH="22" HEIGHT="20" align="absmiddle" /><span class="big3">项目工作日志查询</span></td>
  </tr>
</table>
    <form id="form1" runat="server"><ajaxToolkit:ToolkitScriptManager runat="server" ID="sm"  />
<table class="TableBlock" width="100%" align="center">
   <tr>
       <td nowrap class="TableData">任务项目名称：</td><td nowrap class="TableData"><asp:TextBox ID="txtProject" runat="server" CssClass="BigInput"></asp:TextBox></td>
       <td nowrap class="TableData">安排日期从：</td><td nowrap class="TableData"><asp:TextBox ID="txtArrangedDate" runat="server" CssClass="BigInput"></asp:TextBox>&nbsp;<img onclick="WdatePicker({el:$dp.$('txtArrangedDate')})" src="../../inc/js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle"></td>
   </tr>
   <tr>
       <td nowrap class="TableData">承办者：</td><td nowrap class="TableData"><asp:TextBox ID="txtCreateBy" runat="server" CssClass="BigInput"></asp:TextBox></td>
       <td nowrap class="TableData">到：</td><td nowrap class="TableData"><asp:TextBox ID="txtArrangedDateEnd" runat="server" CssClass="BigInput"></asp:TextBox>&nbsp;<img onclick="WdatePicker({el:$dp.$('txtArrangedDateEnd')})" src="../../inc/js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle"></td>
   </tr>
      
   <tr>
   <td nowrap class="TableControl" align="center"><asp:Button ID="btnQuery" runat="server" Text="查询"  CssClass="BigButton" OnClick="btnQuery_Click" /></td>
   <td nowrap class="TableControl"  colspan="3" align="center"><%--<input type="button" value="添加" class="BigButton" onclick="window.location='TaskAdd.aspx?operation=add';" />--%><%--<input type="submit" value="复制" class="BigButton" style="margin-left:20px;" />--%></td>
   </tr>
</table>

<div style="margin-top:20px; margin-left:8px;"><h3>查询结果：</h3></div>

<div style="text-align:center">
<asp:UpdatePanel UpdateMode="Conditional" ID="upTaskProgress" runat="server" ChildrenAsTriggers="true">
<ContentTemplate>
<huag:OAGridView  id="gv" runat="server" DataKeyNames="TaskId" AllowSorting="True" skinid="PagingGridView" Width="100%"  DataSourceID="odsTaskProcess" OnRowDataBound="gv_RowDataBound" EnableViewState="false" ConfirmDelete="true">
   <Columns>
       <%--<asp:BoundField DataField="Name" HeaderText="名称" SortExpression="Name"  />--%>
       <asp:HyperLinkField DataTextField="TaskTitle" DataNavigateUrlFormatString="TaskView.aspx?id={0}" DataNavigateUrlFields="TaskId" HeaderText="任务" target="_blank" SortExpression="TaskTitle"/>
       <asp:BoundField DataField="Name" HeaderText="任务流程" SortExpression="Name" />
       <asp:BoundField DataField="Project" HeaderText="项目" SortExpression="Project" />
       <asp:BoundField DataField="CreatedBy" HeaderText="承担者" SortExpression="CreatedBy" />
       <asp:BoundField DataField="Remark" HeaderText="工作描述" />
       <asp:BoundField DataField="CreatedTime" HeaderText="日期" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="false" SortExpression="CreatedTime" />
       <%--<asp:BoundField DataField="ArchivedBy" HeaderText="存档人" SortExpression="ArchivedBy" />
       <asp:BoundField DataField="SecretLevel" HeaderText="密级"  SortExpression="SecretLevel" />
       <asp:BoundField DataField="Keywords" HeaderText="文档关键字" />
       <asp:BoundField DataField="Subtitle" HeaderText="文档子标题" />--%>
       
       <%--<asp:HyperLinkField  DataNavigateUrlFormatString="FileUpdate.aspx?id={0}&categoryid={1}&operation=edit" DataNavigateUrlFields="Id,FileCategoryId" Text="编辑" />
       <asp:CommandField ShowDeleteButton="True" DeleteText="删除" />
       --%>
   </Columns>
</huag:OAGridView>
</ContentTemplate>
<Triggers>
<%--<asp:AsyncPostBackTrigger ControlID="btnQuery" />--%>
</Triggers>
</asp:UpdatePanel>

<%--OnSelecting="odsFile_Selecting" MaximumRowsParameterName="maxRows" StartRowIndexParameterName="startIndex"<asp:Parameter Name="startIndex" Type="Int32" /><asp:Parameter Name="maxRows" Type="Int32" /> <asp:Parameter Name="sortExpression" Type="String"/> --%>
<asp:ObjectDataSource id="odsTaskProcess" runat="server" EnablePaging="True" 
 TypeName="CentralOffice.Task.BusinessActions.TaskProgress" 
 SelectMethod="GetPaged" SelectCountMethod="GetCount" OnSelecting="odsTaskProcess_Selecting"
 DeleteMethod="DeleteById"
 SortParameterName="sortExpression" >
    <SelectParameters>
      <asp:Parameter Name="whereClause" Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
</div>

    </form>
    <script type="text/javascript" src="../inc/js/My97DatePicker/WdatePicker.js"></script>
</body>
</html>
